/**
 * Created with Vim7.3 ubuntu12.04
 * @fileOverview : 
 * @author : Lyle <lylechen2014@gmial.com>
 * @since : 2014-12-17 23:00:08
 * @filename : app/modules/index/indexCtrl.js
 * @version : 
 * @description : 
 */

define(function (require, exports, module) {
  'use strict';

  var app = require('app');

  //注册controller
  app.register.controller('mainCtrl', ['$scope','$location',function($scope,$location){

        $scope.gotoPage = function (val) {  
            $location.path('/'+val);
        };
         
 
    }]
  );
});
